#include "box.h"

Box::Box()
    : SuperElement()
{

}

Box::Box(int indexX, int indexY, QImage image)
    : SuperElement()
    , m_indexX(indexX)
    , m_indexY(indexY)
    , m_image(image)
{
    SuperElement::setX(indexX * 40);
    SuperElement::setY(indexY * 40);
    SuperElement::setW(40);
    SuperElement::setH(40);
}

int Box::indexX() const
{
    return m_indexX;
}

void Box::setIndexX(int indexX)
{
    m_indexX = indexX;
}

int Box::indexY() const
{
    return m_indexY;
}

void Box::setIndexY(int indexY)
{
    m_indexY = indexY;
}

QImage Box::image() const
{
    return m_image;
}

void Box::setImage(const QImage &image)
{
    m_image = image;
}
